#include <iostream>
#include <functional>

struct stu{
    char name[100];
    char sex;
    int age;
    int high;
    int weight;
}

struct good_stu{
    struct stu base;
    int good1;
}

struct A{
    int x;
};

struct B{
    struct A obj;
    int y;
};
struct C{
    struct B obj;
    int z;
};


int main()
{
    struct C c;
    struct C *p = &c;
    struct B *p1 = (struct B)&c;
    struct A *p2 = (struct A*)&c;
}



//typedef std::function<int(int,int)> handler;
//typedef int(*h_t)(int,int);
//
//int myadd(int x, int y)
//{
//    return x+y;
//}
//
//int main()
//{
//    handler h = myadd;
//    int z= h(10,20);
//
//    std::cout << z  <<std::endl;
//}
